package cn.huixh.blindbox.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author huixh
 * @version 1.0
 * @date 2022/5/9 14:33
 */
@Accessors(chain = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class NoteDTO {
    /**
     * 简介
     */
    @NotEmpty(message = "简介不能为空")
    @Length(max = 100, message = "简介长度不能超过100")
    private String message;

    /**
     * 性别
     */
    @NotEmpty(message = "性别不能为空")
    private String sex;

    /**
     * 微信号
     */
    @Length(max = 25, message = "微信号过长")
    private String weChatNumber;

    private List< String > files;
}
